<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left" style="width:415px"><h3> <a href="<?= base_url();?>member/myaccount"> My Account </a></h3></span>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/add">Sale Car</a>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/requirement">Post Requirement</a>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
    <div id="inner" style="text-align: justify">
        <div style="width: 300px; float: left; height: auto">
            <ul>
                <li> <strong> <?= $member['info']->first_name . ' ' . $member['info']->last_name; ?> &nbsp; <?= '#' . $member['info']->id; ?><a href="<?= base_url();?>member/register/edit/1"> &nbsp; Edit Profile</a></strong> </li>
                <li> Created on : <?= $member['info']->created_on; ?>  </li>
                <li> Last Login : <?= $member['info']->last_login; ?>  </li>
            </ul>
        </div>

        <div style="width: 200px; float: right; height: auto">
            <ul>
                <li><a href="<?= base_url();?>member/myaccount/change_password"> Change Password </a></li>
                <li><a href="<?= base_url();?>member/car/add"> Add New Car for Sale </a></li>
                <li><a href="<?= base_url();?>member/myaccount/delete/<?= $member['info']->id; ?>" onclick="return confirm('Are you sure you want to Delete Account? \n It will delete all the information of your account. ')"> Delete Account </a></li>
            </ul>
        </div>
    </div>
</div> <!-- End of Box_2 -->




<div class="box_2">
    <div class="title reg bold"> 
        <span class="inline-block fleft align_left" style="display: inline"> <h2> Profile Edit ! </h2> </span>
        <div class="clear"></div>
    </div>



    <form class="form1" id="sale_car" method="post" action="<?= base_url(); ?>member/register/edit_submit/1">
        <p> 
            (*) Marked fields are mandatory, Please provide correct information..
            <span class="color_3 bold">Already member ? Click here to <a href="#">Login</a></span>
        </p>

        <!-- Error Message -->
        <div id="validation">
            <?php echo validation_errors(); ?> 
        </div>
        <?php if ($this->session->flashdata('message')) { ?>
            <div id="message"> <?= $this->session->flashdata('message'); ?></div>
        <?php } ?>
        <!-- End of Error Message -->                                    
        <input name="mem_id" type="hidden" value="<?= $member['info']->id; ?>" />
        <input name="mode" type="hidden" value="EDIT" />
        
        
        

        <div class="clear"></div>   
        <div class="rowElem">
            <div class="fleft " style="margin-right: 20px">
                <label><strong>First Name:</strong></label>
                <input name="ind_fname" type="text" size="20" value="<?= $member['info']->first_name; ?>"  > </input> 
            </div>

            <div class="fleft mid_col" >
                <label><strong>Last Name:</strong></label>
                <span style="float:left" > 
                    <input name="ind_lname" type="text" size="20" value="<?= $member['info']->last_name; ?>"> </input>
                </span>
            </div>
        </div>  

        <div class="rowElem">
            <div class="fleft" style="margin-right: 20px">
                <label><strong>Region:</strong></label>
                <select name="state" onChange="getCity(this.value,'<?= base_url(); ?>','register_get_city');">
                    <option value="<?= $member['info']->state; ?>" selected="selected"> <?= $this->location_model->get_state_name($member['info']->state); ?></option>
                    <?php foreach ($location['state'] as $state): ?> 
                        <option value="<?= $state->id; ?>"><?= $state->state; ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="fleft mid_col" >
                <label><strong>City:</strong></label>
                <div id="register_get_city">
                    <select name="city">
                        <option value="<?= $member['info']->city; ?>" selected="selected"> <?= $this->location_model->get_city_name($member['info']->city); ?>  </option>
                        <option value="" disabled="disabled">----------------</option>
                    </select>  
                </div>
            </div>
            <div class="clear"></div>
        </div> 

        <div class="rowElem">
            <div class="fleft mini_col" style="float: left; width: 100px">
                <label><strong>Area Code:</strong></label>
                <input name="ind_areacode" type="text" size="5" value="<?= $member['info']->area_code; ?>" style="width: 60px"> </input>
            </div>

            <div class="fleft mid_col" style="float: left; width: 130px">
                <label><strong>Land line No:</strong></label>
                <input name="ind_landline" type="text" size="11" value="<?= $member['info']->landline; ?>" style="width: 125px"> </input>
            </div>

            <div class="fleft marg_left" >
                <label><strong>Mobile No:</strong></label>
                <input name="ind_mobile" type="text"  value="<?= $member['info']->mobile; ?>"> </input>
            </div>
            <div class="clear"></div>
        </div>  

        
        <!-- PART --->

        <div class="rowElem ">
            <div class="clear"></div>
            <a onClick="document.getElementById('sale_car').submit()" class="inline-block button_search color_1 bold"><span class="inline-block">Continue</span></a>
        </div>
        <div class="clear"></div>

    </form> <!-- END OF FORM -->

</div>




